
set(EXECUTABLE_OUTPUT_PATH bin/${CMAKE_BUILD_TYPE})

#Inclusion de la bibliothèque Hello
#include_directories(../include)
#link_directories(../lib/${CMAKE_BUILD_TYPE})

#Configuration de l'exécutable
#file(	GLOB_RECURSE source_files src/* )


#Configuration de l'édition de liens
#target_link_libraries( tp2 ${THELIBS} )

#target_link_libraries (laplacian Laplacian ${THELIBS})

include_directories(./)
link_directories( lib/${CMAKE_BUILD_TYPE} )

add_library( outilsgeom SHARED outilsgeom.hpp outilsgeom.cpp )

add_library( mykdtree SHARED mykdtree.hpp mykdtree.cpp )

add_library( interpolate SHARED interpolate.hpp interpolate.cpp )

add_library( localisation SHARED localisation.cpp)

#add_library( mykdtree SHARED mykdtree.hpp mykdtree.cpp )

add_executable(	main_interpolate main.cpp )
target_link_libraries(main_interpolate interpolate localisation outilsgeom mykdtree ${THELIBS} )

add_executable(test_kd test_kdtree.cpp)
target_link_libraries(test_kd ${THELIBS} )
ADD_TEST(test_kd ./bin/test_kd)
ENABLE_TESTING()


add_executable(	main_localisation cercle.cpp )
target_link_libraries(main_localisation ${THELIBS} )
